// 类型别名首字母大写，为了跟基本类型区分，好处：复用、更改方便
// 语法
// type 自己起的类型名字 = 真实类型
// 类型别名用得贼多
type CustomArray = (string | number | boolean)[]

let arr1: CustomArray = ['zhangsan', 1, true]

let arr2: CustomArray = ['lisi', 2, false]

let arr3: CustomArray = ['wangwu', 3, true]

type CustomType = string | boolean
let abc1: CustomType = 'zhangsan'
let abc2: CustomType = true

console.log(arr1, abc1)

export {}
